// IImageUploadService.aidl
package dongze.com.ckdj.service;

import dongze.com.ckdj.service.IImageUploadCallback;
import dongze.com.ckdj.service.ImageUploadTask;

interface IImageUploadService {
    void addCallback(IImageUploadCallback callback);
    void removeCallback(IImageUploadCallback callback);

    void addTask(inout ImageUploadTask task);
    void setTaskForce(in ImageUploadTask task);
    void reStartTask(long id);
    void cancelTask(long id);
    ImageUploadTask[] getCurrentTasks();
    ImageUploadTask[] getUnstartTasks();
    ImageUploadTask[] getHistoryTask(int page, int size);
    long getHistoryTaskCount();
    void forceStartDownload();
    void forceStart(long id);
    void deleteTask(long id);
}
